$trigger = $('#trigger')

$card = $('.card');

var loaded = false;

console.log('loaded:', loaded);

$trigger.on('click', function() {


	if ($card.is(':visible') && loaded == true) {
		console.log('00000');
		$card.slideUp()

	} else {
		console.log('11111,loaded:', loaded);
		if (!loaded) {
			console.log('not loaded  begin load card.html');
			$card.load('card.html');
			loaded = true;
		}
		// 显示
		$card.slideDown();
	}

	// $card.load('card.html');
	// $card.toggle();

})
